import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'










export const backgroundListService = (params)=>{
    return  request.get('/admin/background/listAll',{params:params})
}


export const backgroundAddService = (data)=>{
    return request.post('/admin/background/add',data);

}


export const backgroundDelService = (id)=>{
    return request.get('/admin/background/del?id='+id)
}

export const backgroundEditService = (data)=>{
    return  request.post('/admin/background/edit',data)
}

export const backgroundResourcePublishService = (data)=>{
    return  request.post('/admin/background/publish',data)
}
